package com.uyayo.system.authority.service;

import java.util.List;

import com.uyayo.framework.pagehelper.pojo.PageBean;
import com.uyayo.system.authority.entity.SysRole;
import com.uyayo.system.authority.entity.SysRoleResource;
import com.uyayo.system.authority.model.SysRoleCondition;


public interface SysRoleService {
	
	SysRole getRoleById(String id) throws Exception;

	List<SysRole> selectRole(SysRole role);
	
	PageBean<SysRole> selectRole(Integer pageCurrent, Integer pageSize,String sort,String order,SysRoleCondition sysRoleQUERY);
	
	int saveRole(SysRole role);

	SysRole getRoleByUpdateTestOnly(String coding);

	int updateRole(SysRole role);

	int deleteRole(String id);

	List<SysRoleResource> findRoleResources(String roleId);

	int grantRoleResource(String ids,String roleId);

	List<SysRole> findRoleByUserId(String userId);


}
